<template>
    <div class="number-node">
        <base-node :pname="pname">
            <template #begin>
                <span style="color:#1890ff;margin-right:0.5em">number</span>
            </template>
            <template #default>
                <span>{{ pvalue }}</span>
            </template>
            <template #end></template>
        </base-node>
    </div>
</template>

<script lang="ts">
import { Component, Prop, Vue } from "vue-property-decorator";
import BaseNode from "@/components/ObjectCom/BaseNode.vue";

@Component({
    components: { BaseNode }
})
export default class NumberNode extends Vue {
    @Prop() public pname!: string;
    @Prop() public pvalue!: number;
}
</script>